package com.itzhoun.strategy.context;

/**
 * @author 周楠
 * @Date 2022/11/30/下午 9:20
 */
public class CashContext {

    //抽象方法的实例

    private CashStrategy cashStrategy;

    public CashContext(CashStrategy cashStrategy){
        this.cashStrategy = cashStrategy;
    }

    public double getMoney(double money){
        return cashStrategy.acceptMoney(money);
    }


}
